//
//  FilterView.h
//  IphoneImageProcessing
//
//  Created by Ngoc on 17/06/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "IFSimpleTintFilter.h"
#import "IFGreyscaleFilter.h"
#import "IFPixelationFilter.h"
#import "IFBrightnessFilter.h"
#import "IFThermalFilter.h"
#import "IFSnowFuzzFilter.h"
#import "IFSaturationFilter.h"
#import "IFHueFilter.h"
#import "IFBlurFilter.h"
#import "IFFindEdgesFilter.h"
#import "IFEmbossFilter.h"
#import "IFSharpenFilter.h"
#import "IFTiltShiftFilter.h"
typedef enum fliterAlgorithm
{
    TintRed,
    Greyscale,
    Pixelate,
    Brightness,
    Saturation,
    Hue,
    Thermal,
    SnowFuzz,	
    Blur,
    FindEdges,
    Emboss,
    Sharpen,
    TiltShift
}FilterAlgorithm;
enum
{
	IFFilterPreviewSliderModePixelate = 0,
	IFFilterPreviewSliderModeBrightness = 1,
	IFFilterPreviewSliderModeSaturation = 2,
	IFFilterPreviewSliderModeHue = 3
} IFFilterPreviewSliderMode;

@interface FilterView : UIViewController <IFFilterDelegate>{
    
    FilterAlgorithm filter_;
   // UIImage* originalImage;
    IBOutlet UISlider *slider;
	IBOutlet UIImageView *imageView;
    IBOutlet UIView *activityView;
    IBOutlet UINavigationBar* nagigationBar;
    UIViewController* returnView;
    int sliderMode;
}
@property (nonatomic) FilterAlgorithm Filter;
//@property (nonatomic, retain) IBOutlet UISlider* slider;
@property (nonatomic, retain) UIImage *originalImage;

-(id) initWithFilter:(FilterAlgorithm) filter originalImage:(UIImage*) image returnView:(UIViewController*) view;
-(void) applyEffect;
- (IBAction) sliderMoved:(id)sender;
-(IBAction) returnPrevisousView;
-(IBAction) applyEffectAndReturnResult;

@end
